/**
 * @Date 2025/1/8 16:52
 * @Created by 衡盛永
 */

package org.example.deploy.controller;

import org.example.deploy.exception.CustomException;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @RequestMapping("/hello")
    public void hello() {
        try {
            int a = 9 / 0;
        } catch (Exception e) {
            e.printStackTrace();
            throw new CustomException(20001, "CustomException");
        }
        System.out.println("hello");
    }
}
